#define MAX_BUF_FILE 1024*1024
typedef enum
{
    LOGIN,
    SIGNUP,
    CHAT,
    QUIT,
    CONTROL
}userMesType;

typedef enum
{
    cd,
    ls,
    _puts,
    _gets,
    _remove,
    pwd,
    noControl
}controlType;

typedef struct
{
    char token[20];
    char name[10];
    char account[20];
    char password[20];
    char currPath[64];
    //状态，0是新用户
    int stat;
}User1;
typedef struct mes
{
    controlType cType;
    userMesType mesType;
    User1 user;
    int allFileSize;
    int contentSize;
    char content[MAX_BUF_FILE];
}userMes;

typedef enum
{
     _CONTROL,
     _FILE,
     _CHAT,
     _TOKEN
}recvType;

typedef enum
{
    YES,
    NO,
    ERROR
}recvStat;

typedef struct fuckingMes
{
    recvStat rStat;
    recvType rType;
    controlType cType;
    int allFileSize;
    int  contentSize;
    char content[MAX_BUF_FILE];
}recvMes;
